import Vue from 'vue'
import App from './App'
import store from './store'
import Util from './common/js/utils/index.js'
import Http from './common/js/api/request.js'

import Lang from './common/js/config/lang.js'
import Config from './common/js/config/index.js'


Vue.prototype.$store = store			//挂在vue

Vue.config.productionTip = true

Vue.prototype.$util = Util;
Vue.prototype.$api = Http;

Vue.prototype.$langConfig = Lang; //语言包对象
Vue.prototype.$lang = Lang.lang; //解析语言包

Vue.prototype.$config = Config;


App.mpType = 'app'

//常用组件
import loadingCover from '@/components/other/loading-cover/loading-cover.vue';
Vue.component('loading-cover', loadingCover);

import culoading from '@/components/dialog/cu-loading.vue';
Vue.component('cu-loading', culoading);

import MescrollUni from "@/components/other/mescroll/my-list-mescroll.vue";
Vue.component("mescroll-uni", MescrollUni); //上拉加载,下拉刷新组件

import MescrollBody from "@/components/other/mescroll/mescroll-body.vue"
Vue.component('mescroll-body', MescrollBody)

import more from '@/components/card/cu-more.vue'
Vue.component('cu-more',more)


const app = new Vue({
	...App,store
})

app.$mount()